package edu.dayu.service.impl;

import edu.dayu.mapper.ArticleTypeMapper;
import edu.dayu.pojo.ArticleType;
import edu.dayu.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleTypeServiceImpl implements ArticleTypeService {
    @Autowired
    private ArticleTypeMapper articleTypeMapper;
    @Override
    public List<ArticleType> articleTypeList(ArticleType articleType) {
        return articleTypeMapper.articleTypeList(articleType);
    }

    @Override
    public void articleTypeInsert(ArticleType articleType) {
        articleTypeMapper.articleTypeInsert(articleType);
    }

    @Override
    public void articleTypeUpdate(ArticleType articleType) {
        articleTypeMapper.articleTypeUpdate(articleType);
    }

    @Override
    public void articleTypeDelete(ArticleType articleType) {
        articleTypeMapper.articleTypeDelete(articleType);
    }
}
